﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using Microsoft.Practices.Unity;

namespace VpPrism.Modules.ModuleTwo.Views
{
  /// <summary>
  /// Interaction logic for ModuleTwoMainV.xaml
  /// </summary>
  public partial class ModuleTwoMainV : UserControl, IModuleTwoMainV
  {
    #region Fields
    private readonly IUnityContainer container;
    #endregion

    /// <summary>
    /// Constructeur
    /// </summary>
    /// <param name="container"></param>
    public ModuleTwoMainV(IUnityContainer container)
    {
      this.container = container;
      InitializeComponent();
    }

    #region IModuleTwoMainV Members

    /// <summary>
    /// Fonction pour associer un ViewModel à cette vue
    /// </summary>
    /// <param name="model"></param>
    public void SetModel(VpPrism.Modules.ModuleTwo.ViewModels.IModuleTwoMainVM model)
    {
      this.DataContext = model;
    }

    #endregion
  }
}
